<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">我的合集</h3>
    </div>
    <div class="panel-body">
        {% for category in category_all %}
            <a href="{% url 'blog:select_article' user_obj.username 'category' category.pk  %}">
                {{ category.name }}【{{ category.article_count }}】
            </a>
            <hr>
        {% endfor %}
    </div>
</div>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">我的标签</h3>
    </div>
    <div class="panel-body">
        {% for tags in tags_all %}
            <a href="{% url 'blog:select_article' user_obj.username 'tag' tags.pk  %}">
                {{ tags.name }}【{{ tags.article_count }}】
            </a>
            <hr>
        {% endfor %}
    </div>
</div>
<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">随笔档案</h3>
    </div>
    <div class="panel-body">
        {% for archive in date_archive %}
            <a href="{% url 'blog:select_article' user_obj.username 'archive' archive.year_month|date:'Y-m'  %}">
                {{ archive.year_month|date:'Y-m' }} 【{{ archive.article_count }}】
            </a>
            <hr>
        {% endfor %}
    </div>
</div>

<div class="panel panel-primary">
    <div class="panel-heading">
        <h3 class="panel-title">点赞排行榜</h3>
    </div>
    <div class="panel-body">
        {% for rank in like_rank %}
            <a href="{% url 'article:detail' user_obj.username rank.id %}">
                {{ rank.title }}【{{ rank.up_count }}】
            </a>
            <hr>
        {% endfor %}
    </div>
</div>